/*    */ package org.flashzlm.tools.shifa.impl;
/*    */ 
/*    */ import java.util.Random;
/*    */ import org.flashzlm.tools.shifa.ZhanShiFa;
/*    */ 
/*    */ public class JinQianGua
/*    */   implements ZhanShiFa
/*    */ {
/*    */   public int qiYao(long seed)
/*    */   {
/* 12 */     Random r = new Random(seed);
/* 13 */     int moneyStat1 = r.nextInt(2);
/* 14 */     int moneyStat2 = r.nextInt(2);
/* 15 */     int moneyStat3 = r.nextInt(2);
/*    */ 
/* 17 */     String yao = String.valueOf(moneyStat1) + String.valueOf(moneyStat2) + String.valueOf(moneyStat3);
/* 18 */     if (("001".equals(yao)) || ("010".equals(yao)) || ("100".equals(yao)))
/* 19 */       return 7;
/* 20 */     if (("011".equals(yao)) || ("110".equals(yao)) || ("101".equals(yao)))
/* 21 */       return 8;
/* 22 */     if ("000".equals(yao)) {
/* 23 */       return 6;
/*    */     }
/* 25 */     return 9;
/*    */   }
/*    */ }

